#include "random.h"
#include <cstdlib>


/**
 * Rolls the dice between r.low and r.high
 * @param Range r
 * @return int
 */
int Random(Range r)
{
	return r.mLow + rand() % ((r.mHigh + 1) - r.mLow);
}

/**
 * Rolls the dice between a range
 * @param int low
 * @param int high
 * @return int
 */
int Random(int low, int high)
{
	return low + rand() % ((high + 1) - low);
}